/**
 * 管理action传递过来的
 * */
const data = {
    path: '/index/home',
    workClassify: '岗位类型'
}

const reducer = (state = data,action) => {
    switch (action.type) {
        case 'changePath':
            state.path = action.path;
            return  {
                ...state
            }
        case 'changeWorkClassify':
            state.workClassify = action.workClassify
            return {
                ...state
            }
        default:
            return state
    }
}

export default reducer